

ac.item('重铸宝石'){
    item_type = "charged",
    targettype = "物体",
    allowtype = '物品',
    auto_merge = true,
    count = 1,
    range = 300,
    cool = 0.2,
    model = [[QY_qhbs.mdl]],
    title = '重铸宝石',
    art = [[图标\wp_qhbs.blp]],
    tip = [[重铸装备]],
    on_use = function(self, item)
        if item.item_class~='装备' then
            self:set_count(self:get_count())
            ac.console:error(player, "只能对装备使用！")
            return
        end
        local hero = self.owner
        local player = hero.owner
        local lv = item.item_level or 0
        local name = item.name
        while name==item.name do
            name = random_item_name(lv)
        end
        item:remove()
        hero:add_item(name,{owner_player = player})
    end
}